package com.wust.supermarket.dao;

import com.wust.supermarket.domain.Provider;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface ProviderDao {
    //查询所有供应商
    List<Provider> listAllProviders();

    //通过ID查询供应商
    Provider getProviderById(int providerId);

    //插入供应商
    int insertProvider(Provider provider);

    //修改供应商
    int updateProvider(Provider provider);

    //删除供应商
    int deleteProvider(int providerId);

    //查询所有已经下线的供应商
    List<Provider> listProviderOffline();
}
